package com.dong.config;

import com.dong.bean.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan(basePackages = {"com.dong.bean"})
public class KnighConfig {
    @Bean
    public Person person () {
        Person person = new Person();
        person.setAge(2);
        person.setName("shangsan");
        return person;
    }


}
